package com.qn.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.util.Map;

@Schema(description = "管理后台 - 不通过流程任务的 Request VO")
@Data
public class BpmTaskRejectReqVO {

    @Schema(description = "流程实例id", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024")
    @NotNull(message = "流程实例id不能为空")
    private Long instanceId;

    @Schema(description = "审批意见", requiredMode = Schema.RequiredMode.REQUIRED, example = "不错不错！")
    private String reason;

    @Schema(description = "变量实例（动态表单）", requiredMode = Schema.RequiredMode.REQUIRED, example = "{day:5}")
    private Map<String, Object> variables;

}
